home *** CD-ROM | disk | FTP | other *** search
/ IRIX Patches 1995 June / SGI IRIX Patches 1995 Jun.iso / 5.3_patches / patchSG0000154 / patchSG0000154.idb / usr / gfx / startgfx.z / startgfx
Encoding:
Text File  |  1995-06-12  |  1.2 KB  |  49 lines

  1. #!/bin/sh
  2. #
  3. # startgfx.sh
  4. #
  5. # start the window system
  6. #
  7. #
  8. # Copyright 1991, Silicon Graphics, Inc.
  9. # All Rights Reserved.
  10. #
  11. # This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  12. # the contents of this file may not be disclosed to third parties, copied or
  13. # duplicated in any form, in whole or in part, without the prior written
  14. # permission of Silicon Graphics, Inc.
  15. #
  16. # RESTRICTED RIGHTS LEGEND:
  17. # Use, duplication or disclosure by the Government is subject to restrictions
  18. # as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  19. # and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  20. # successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  21. # rights reserved under the Copyright Laws of the United States.
  22. #
  23. # $Revision: 1.9 $
  24. #
  25.  
  26. /etc/chkconfig windowsystem on
  27.  
  28. if who -lu | grep "[     ]tport[     ]" > /dev/null
  29. then
  30.     if sed '/^tp:/ s/:respawn:/:off:/' > /etc/inittab.$$ < /etc/inittab
  31.     then
  32.         sync
  33.         mv /etc/inittab.$$ /etc/inittab
  34.         sync
  35.         telinit q
  36.     else
  37.         echo "Warning: $0 unable to turn off textport getty"
  38.     fi
  39. fi
  40.  
  41. /etc/killall -HUP xdm > /dev/null 2>&1
  42. ret=$?
  43. if [ $ret -eq 0 ]; then
  44.     /bin/echo "Sent SIGHUP to xdm"
  45.     exit
  46. fi
  47. echo "Starting xdm"
  48. exec /usr/bin/X11/xdm
  49.